﻿<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="786"
    xmlns:CiKCiK="clr-namespace:CiKCiK">
    <Window.Resources>
        <CiKCiK:CalisiyorConverter x:Key="CalisiyorConverter"/>
        <CiKCiK:TextConverter x:Key="TextConverter"/>
    </Window.Resources>
    <Grid Name="g" Background="{Binding calisiyor,Converter={StaticResource CalisiyorConverter}}">
        <ListBox Margin="12,12,12,38" Name="ListBox1" ItemsSource="{Binding Mode=OneWay, UpdateSourceTrigger=Explicit}" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Width="Auto">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <!--<Viewbox>-->
                    
                    
                    
                    <Grid>
                            <!--<TextBlock Text="{Binding id}" VerticalAlignment="Center" HorizontalAlignment="Left"/>-->
                            <Grid>
                                <Image Height="30" Margin="5,5,10,5" Stretch="UniformToFill" Width="30" Source="{Binding resim}" VerticalAlignment="Top" HorizontalAlignment="Left" >
                                    <Image.Clip>
                                        <RectangleGeometry RadiusX="5" RadiusY="5" Rect="0,0,30,30"/>
                                    </Image.Clip>
                                </Image>
                                <Grid.BitmapEffect>
                                    <DropShadowBitmapEffect Color="Black"/>
                                </Grid.BitmapEffect>
                            </Grid>
                        <!--<TextBlock Margin="45,0,0,0" Text="{Binding txt,Converter={StaticResource TextConverter}}" VerticalAlignment="Center" TextWrapping="Wrap" Width="auto"/>-->
                        <CiKCiK:CustomTextBlock Margin="45,0,0,0" VerticalAlignment="Center" TextWrapping="Wrap" Width="auto"
                                                InlineCollection="{Binding txt}" Klik="FBCTextBox_TextChanged" />
                        <!--InlineCollection="{Binding txt,Converter={StaticResource TextConverter}}" />-->
                        <!--<ContentPresenter Margin="45,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" RecognizesAccessKey="True" Content="{Binding txt}">
                                <ContentPresenter.ContentTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{TemplateBinding Content}" TextWrapping="Wrap" TextAlignment="Left" Width="auto"/>
                                    </DataTemplate>
                                </ContentPresenter.ContentTemplate>
                        </ContentPresenter>-->


                    </Grid>

                    
                    
                    <!--</Viewbox>-->
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <TextBox HorizontalAlignment="Left" Margin="12,0,0,12" Name="TextBox1" Width="120" Height="23" VerticalAlignment="Bottom" />
        <Button Content="Refresh" HorizontalAlignment="Left" Margin="151,0,0,12" Name="Button1" Width="75" Height="23" VerticalAlignment="Bottom" />
        <TextBox HorizontalAlignment="Left" Margin="243,0,0,12" x:Name="TextBox2" Width="120" Text="{Binding calisiyor}" Height="23" VerticalAlignment="Bottom" />
        <TextBlock Margin="371,0,12,8" Name="TextBlock1" Text="TextBlock" Height="23" VerticalAlignment="Bottom" />
    </Grid>
</Window>
